package com.sleepingcat.ft_flutter.activity.test

import android.os.Bundle
import com.cat.android.lib_base.base.BaseActivity
import com.cat.android.lib_ui.ext.onClick
import com.sleepingcat.ft_flutter.channel.ChannelManager
import com.sleepingcat.lib_flutter.databinding.ActivityTestBinding

/**
 * @作者 志浩
 * @时间 2025/3/12 20:39
 * @描述 TODO
 */
class Test2Activity : BaseActivity<ActivityTestBinding>() {
    private val TAG = "Test1Activity"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding.apply {
            tv.text = "Test2"
            btn.text = "跳去Setting"
            btn.onClick {
                ChannelManager.userChannel.flutterApi.pushSettingPage {  }
            }
        }
    }
}